package com.xiaohong.goods.pojo;
import com.baomidou.mybatisplus.annotation.*;
import static io.swagger.v3.oas.annotations.media.Schema.AccessMode.READ_ONLY;
import io.swagger.v3.oas.annotations.media.Schema;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serializable;
import java.lang.Long;
import java.util.Date;
import java.lang.String;
import java.lang.Integer;

@Schema(name = "Brand")
public class Brand implements Serializable{

	@TableId(value = "id",type = IdType.AUTO)
	@Schema(description = "品牌id",accessMode = READ_ONLY)
	@JsonFormat(shape = JsonFormat.Shape.STRING)
	private Integer id;//品牌id

	@Schema(description = "品牌中文名")
	@TableField("chinese_name")
	private String chineseName;//品牌中文名

	@Schema(description = "品牌英文名")
	@TableField("english_name")
	private String englishName;//品牌英文名

	@Schema(description = "品牌LOGO图片地址")
	@TableField("logo")
	private String logo;//品牌LOGO图片地址

	@Schema(description = "品牌的首字母")
	@TableField("letter")
	private String letter;//品牌的首字母

	@Schema(description = "逻辑删除标志",accessMode = READ_ONLY)
	@TableLogic
	private Integer deleted;//逻辑删除标志

	@Schema(description = "创建时间",accessMode = READ_ONLY)
	@TableField(value = "gmt_create",fill = FieldFill.INSERT)
	private Date gmtCreate;//创建时间

	@Schema(description = "更改时间",accessMode = READ_ONLY)
	@TableField(value = "gmt_modified",fill = FieldFill.INSERT_UPDATE)
	private Date gmtModified;//更改时间

	@Schema(description = "乐观锁",accessMode = READ_ONLY)
	@Version
	private Integer version;//乐观锁



	//get方法
	public Integer getId() {
		return id;
	}

	//set方法
	public void setId(Integer id) {
		this.id = id;
	}
	//get方法
	public String getChineseName() {
		return chineseName;
	}

	//set方法
	public void setChineseName(String chineseName) {
		this.chineseName = chineseName;
	}
	//get方法
	public String getEnglishName() {
		return englishName;
	}

	//set方法
	public void setEnglishName(String englishName) {
		this.englishName = englishName;
	}
	//get方法
	public String getLogo() {
		return logo;
	}

	//set方法
	public void setLogo(String logo) {
		this.logo = logo;
	}
	//get方法
	public String getLetter() {
		return letter;
	}

	//set方法
	public void setLetter(String letter) {
		this.letter = letter;
	}
	//get方法
	public Integer getDeleted() {
		return deleted;
	}

	//set方法
	public void setDeleted(Integer deleted) {
		this.deleted = deleted;
	}
	//get方法
	public Date getGmtCreate() {
		return gmtCreate;
	}

	//set方法
	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}
	//get方法
	public Date getGmtModified() {
		return gmtModified;
	}

	//set方法
	public void setGmtModified(Date gmtModified) {
		this.gmtModified = gmtModified;
	}
	//get方法
	public Integer getVersion() {
		return version;
	}

	//set方法
	public void setVersion(Integer version) {
		this.version = version;
	}


}
